Don't return -1 in case of a bad date. -1 isn't a valid timestamp under win32.
authoroliskoli <oliskoli>
Thu, 22 Feb 2007 00:25:48 +0000 (00:25 +0000)
committeroliskoli <oliskoli>
Thu, 22 Feb 2007 00:25:48 +0000 (00:25 +0000)
csv_util.c

index 5eccf938c243854de3faf9b98cfb43808fb6662e..3fe89dd1ceb99e29fba8206a02e628842bb420f4 100644 (file)
@@ -689,7 +689,7 @@ sscanftime( const char *s, const char *format, const int gmt )
                        return mktime(&stm);            
        }
        
-       return -1;
+       return 0;
 }
 static
 time_t